XO game on Java