fixing game flow