fixed bug with loop in Poweruprespawngenerator