updated main, added function to tell when the feet are making contact