An alternative solution for checking if the player crosses the lap could be for others to compare with.
While the game is playing
- check if has touched player and if was front of car
+ change lapCount by one
+ wait until the player crosses line with empty repeat block before checking if they crossed line again.