Attempt at creating a simulation for Deterministic and Non-Determinisic Finite Main and functions related to the same