If I would a developer of something that can have bugs and badges, I would give the badges when player does something that led to bugs