Practice tic tac toe game in java