moving operations related to board state to board class