Created a swapPowerup function on Powerup.