Added update method and friction to physics module