Simple tic tac toe game using java