Basic implementation of converting regex to a NFA is working now.