Gameengine in Typescript