-EDITED- game flow