Adding logic to select number of rounds. Fixed name of state logic process.
Adding round counter. Changing some names.