fix bug in RNG
refactor
Allow user to select rom file