Java class for a terminal based game grid