public void finalizeMap(){
		for (int i = 0; i < tiles.length; i++) {
			for (int j = 0; j < tiles.length; j++) {
				if (tiles[i][j] == 'S') {
					myX = 25 + i * 50;
					myY = 25 + j * 50 ;
				}
				if (tiles[i][j] == 'R') {
					mySecondX = 25 + i * 50;
					mysecondY = 25 + j * 50;
				}
			}
		}
		int count=0;
		// code for the cherry

		// code for the solid tiles
		for (int i = 0; i < tiles.length; i++) {
			for (int j = 1; j < tiles.length; j++) {
				if(tiles[i][j]=='X' && (tiles[i][j-1]=='X' || tiles[i][j-1]=='x')){
					tiles[i][j]='x';
				}
			}
		}

	}