public static void turn (char[][] game, int player){
		int x, y;
		//read in x & y coordinates
		boolean valid_coord = false;
		while (!valid_coord){
			Scanner in = new Scanner(System.in);
			System.out.println("Player " + player);
			System.out.println("Please enter your x coordinate: ");
			x = in.nextInt();
			System.out.println("Please enter your y coordinate: ");
			y = in.nextInt();

			//check for valid coordinates
			if ((x > 2) || (x < 0)|| (y > 2) || (y < 0)) {
				valid_coord = false;
				System.out.println("bad coordinates. try again");
			}
			else { //you have valid coordinates & now check the grid
				if ((game[x][y] == 'X') || (game[x][y] == 'O')){
					valid_coord = false;
					System.out.println("the square is already filled! try again");
				}
				else{
					if (player == 1) {
						game[x][y] = 'X';
						squares++;
					}
					else { //it's player 2 duh
						game[x][y] = 'O';
						squares++;
					}
					if (squares >= 5) {
						check_3(player, game);
					}
					valid_coord = true;
				}
			}
		}
	}