Coding game: catching coins and avoiding bombs

It does, but I don’t know where I should use the second isCoin and how exactly I should write it for the health and score