Basic Java version of TicTacToe