for(int i = pellets.Count - 1; i > -1; i--) { if( pacMan.CollidesWith(pellets[i])) { pacMan.GivePoints(10); sprMan.RemoveSprite(pellets[i]); } }