Improve action transitons.
Refactor direction and sleep to hdir and hsleep.
Initialize front/back rotations.