Created game class to contain everything.

Also added in test code for the game class.
Changed the way rendering works.