Refractored Input, changed walking algorithm.