I thought I fixed that issue! But maybe there's some problem with the code! I didn't have a lot of time, but the game works well for most of the time! I'm sorry you had to experience that!
I'm cleaning up code and improving the algorithm to generate the segments! So next time when you play, it will be flawless!!
Thanks for playing!!