all code ported, but most of the physics are broken