Fixed the physics crash bug, next will try to improve the rendering stuff