// Getting the coordinates from the player, checking if the coordinate is blank and if so, // put the players check on it. private static void moveplayer(String l, TicTacToe game) { int x = 0; int y = 0; int stat = -1; if (l == "cross") { System.out.println("The player with the CROSS can make a move:"); } else { System.out.println("The player with the CIRCLE can make a move:"); } while (stat < 0) { x = in.nextInt(); y = in.nextInt(); stat = checkXY(x, y); } if (l == "cross") { game.setCross(x, y); } else { game.setCircle(x, y); } }