first commit for the branch, mark what to fix
use another random generator, determine direction based on current direction. There is still bug because the 7th digits cannot be cleared out completely