change the L298N's driven method