Create game engine and separated code