private int collidePowerup(Rectangle p)
{
//check if player rectangle p collides with powerup
for(int i = 0; i < powerupList.Count; i++)
{
if(powerupList[i].visible && powerupList[i].hitbox.Intersects(p))
{
return i;
}
}
// Didn't collide with any power ups
return -1;
}