Added a rudimentary state based game engine.