A simple game engine in Haxe