Added distance joint + fixed bugs