// Give warnings if coordinates are not valid or already occupied.
 public static int checkXY(int x, int y) {
   if (x < 0 || x > 2 || y < 0 || y > 2) {
     System.out.println("You are off the board buddy, pick again!");
     return -1;
   } else if (!game.isBlank(x, y)) {
     System.out.println("This one is taken, please try again!");
     return -1;
   }
   return 1;
 }