Bender the robot moves the motors with some power proportional to the distance away from some reference (30cm). This maintains the distance away from an obstacle like a wall, and moves the robot to that reference faster when further away, and slower when closer, allowing for more precise positioning.