Added ranking and found a lot of bugs in the physics