Ad
  • Custom User Avatar

    I did not analyze your code deeply, but after a quick test with it, I fear your while loop on line 20 sometimes never ends (on some tests it reaches over 1000 iterations).