Game logic

@matthewhuff89 @beatrixbetsycarroll - Basic game logic is done and the loop resolves, although the code currently runs on every page. Need to change views to load this on the correct frame.