refactoring robotsim and actuator class