Tic Tac Toe game for Java class