resetting variables to enable game replay