added support for self preservation. Cannot move forward if it senses danger in front of it. Also moves forward if it backs into anything.