Repl interaction and randomization code
Handling doom track