checkScenario function

Check and correct the given scenario