"how do i activate the function restart?"
Code:
restart();


...

But this is kindof inelegant... If you really want to avoid loading the level again, I'd rather reset all values and entites manually than using game_save/load.