split game and engine code

the engine is now linked as a static library