Made a GameController class

I made a GameController class to handle all of the initialization and
rendering so that main is more readable.