number_digit game implementation