add GameEngine class

it does not work right now :(