move onSpaceClicked out of Board object