Extracted gameboard datastructure logic into GameBoard.java