Refactoring moveForward and moveBackward

changed rover.js