Simple tic tac toe simulator in java