Take that While condition out? I've NEVER had a need for While in Construct, and it certainly doesn't need to be used there since on collision is only triggered when a collision happens so it's basically redundant. Besides, it would need to come before the condition being tested, not after.
As I see it, your condition is reading -
While what? The While condition is causing it to loop infinitely causing the freezing of the game because it's stuck there.
While is useful for sorting like (excuse the simplicity but hopefully you get the idea)..
sorted = FALSE
While NOT sorted
..Sort through hiscores
..If hiscores are in proper order then sorted = TRUE