First work done on moving game loop into MainLoop class. Not everything is working perfectly yet and there is still a lot of work that needs to be done.