public boolean MovingBoxIntoBox(int x, int y){
		
		if(map[y][x] != box){
			return false;
		}
		//move box south
		if(y_loc+1 == y){
			if(map[y+1][x] == box)System.out.println("box in the way"); return true;
		}
		
		//move box north
		if(y_loc-1 == y){
			if(map[y-1][x] == box)System.out.println("box in the way"); return true;
		}
		
		//move box west
		if(x_loc-1 == x){
			if(map[y][x-1] == box)System.out.println("box in the way"); return true;
		}
		
		//move box east
		if(x_loc+1 == x){
			if(map[y][x+1] == box)System.out.println("box in the way"); return true;
		}
		
		return false;
	}