2D javascript engine for an isometric space game