fixes game flow