Reorganize and pull the game code out of main

Created a game class that also has sensor handlers within it. This pull
all the game code into one place for simplification.
I hope this doesn't mess up anyone!