You can use ShovelUtils to restart the game for you (there's a restart project block).
Hey thanks but I rarely use extensions, I wanna do things on my own :p
Not that I don't know how to implement a restarts function i just didn't have time to make one haha. I'll be sure to implement one in the next update tho