finishing badges logic