Simple tic tac toe game in java