added sample game loop and level editor code