When my vehicles eat, I can only get one sprite to update its health and color, I tried looping through the sprites but that still doesn't work. Honestly, I'm thinking of refactoring the entire program and not using sprites at all. For testing purposes I have two vehicles, one updates the other does not. When the one that does not update eats, the other's health updates.
for sprite in players:
collisions = pg.sprite.groupcollide(players, mobs, False, True)
if collisions:
for collision in collisions:
new_food()
setattr(sprite, 'health', sprite.health + 10)