XO game on java swing