public boolean isRockNextToRobot(Direction direction) {
		// If direction is LEFT, negative UNIT; else if direction is RIGHT, UNIT
		int xOffset = (direction.equals(Direction.LEFT))?(-UNIT)
				:((direction.equals(Direction.RIGHT))?UNIT:0);
		// If direction is UP, negative UNIT; else if direction is DOWN, UNIT
		int yOffset = (direction.equals(Direction.UP))?(-UNIT)
				:((direction.equals(Direction.DOWN))?UNIT:0);
		return currentPlanet.getRocks().contains(new Rectangle(robot.getLocation().x + xOffset,
				robot.getLocation().y + yOffset, UNIT, UNIT));
	}