Refactored out the game engine to its own class
finished refactoring