Added safety program.

Currently, it stops it from driving off drops. I also added
an analog sensor class, although it is currently not very
sofisticated.