Fixes Score

I put a property on obstacles: a boolean "hasScored"

I put comments for the explanation of the code I added