fixing powerupCount.