Added something that makes the robot stop when going too far