Tic tac toe game written in java