This is a simulation of the way our robots would work. When it senses an object within a certain distance of the robot, the robot will back up for a short period of time, and rotate to the right. If it rotates to the right and still detects an object, it will rotate to the left. If it still sees an object after that, it will rotate even further in both directions untill it doesn't see the wall. This way, it can turn in both directions and is alright in corners.