moves right motor based on input value