Fix missing `direction` var

Also move motor driver into parent dir