Refactored Input
Created TouchDetector tests.