Basic game engine that I'm doing to learn Haxe and Flash API