Moved game engine code into its own framework.