fixed a bug where the player could select a square that was already occupied