public class Square { private final Position position; private Player player; public Square(Position position) { this.position = position; } public void setPlayer(Player player) { this.player = player; } public boolean isEmpty() { return player == null; } }