extract Board.onSpaceClicked