public void rotateRight()
	{
		int row = player.getRow();
		int col = player.getCol();

		// Rotate this tile right.
		map[row][col].rotateRight();

		// Rotate the others left.
		if (isValidIndex(row + 1, col))
			map[row + 1][col].rotateLeft();
		if (isValidIndex(row - 1, col))
			map[row - 1][col].rotateLeft();
		if (isValidIndex(row, col + 1))
			map[row][col + 1].rotateLeft();
		if (isValidIndex(row, col - 1))
			map[row][col - 1].rotateLeft();
		if (isValidIndex(row + 1, col + 1))
			map[row + 1][col + 1].rotateLeft();
		if (isValidIndex(row - 1, col - 1))
			map[row - 1][col - 1].rotateLeft();
		if (isValidIndex(row + 1, col - 1))
			map[row + 1][col - 1].rotateLeft();
		if (isValidIndex(row - 1, col + 1))
			map[row - 1][col + 1].rotateLeft();
	}