TicTacToe java replica