By not loading I am guessing you mean the window does not pop up showing you any of the UI? Have you tried simply creating a new project and importing the code into it? It seems like it is not a big project so doing it would take no more than a few minutes. This has not happened to me so I am not sure how to fix it the right way but I am sure someone will tell you the right way of doing it.

As for the code itself nothing seems to be running in an infinite loop