An event driven game engine for Haxe