made a board state class