fixed rock movement
code cleanup