Perfecting register system with Scratch verification

credit to jvvg for letting us use his system