made the simulator work again. TODO make the contains method dynamic in the Enums class