simple encode and decode system (1 digit) | ScratchStats