Implemented NFAdigit and NFAalphanumeric and accepts (this method
probably needs more working)