Code for game loop + callbacks, added Game object