extracted random file picking logic into function
added easy history accessor func
add balance, add recurse, Updated undo, updated setrandom