reformat code and improve lava cooling animation

Reformat player movement and rotation code. Reformat clone rotation code