Added powerupfactory to handle random powerups.