fixed bug where running from rock and calling wait did not kill the robot