public boolean canRobotMove(Direction direction) {
		boolean result = true;
		/* Each case checks for 2 things: if the robot will move outside of the bounds
		 * and if there is a rock in the robot's path.
		 */
		switch(direction) {
		case UP:
			result &= robot.getLocation().y > 0;
			break;
		case DOWN:
			result &= robot.getLocation().y < currentPlanet.getBOTTOM();
			break;
		case LEFT:
			result &= robot.getLocation().x > 0;
			break;
		case RIGHT:
			result &= robot.getLocation().x < Launcher.getFrameBounds().width - UNIT;
			break;
		}
		result &= !isRockNextToRobot(direction);
		result &= robot.getFuelTank().getFuelLevel() > 0;
		return result;
	}