Detect collision and calculate score