Input detection works

InputManager traces the movements of the touch. Next task is to detect the gestures. I think this will work.