State management: adding of an enumeration

An enumeration has been added to manage easily playing states.
MainWindow: fix spinbox bug

When speed value was changed in spinbox, simulation started.