Added in GameManager functionality. The game loop runs correctly. It's perhaps a little slow, but I'm not sure what a significant figure is in this case.