Refactored a bunch to make it easier to test and include in an FRB game, and added screen and world coordinates to GestureSample