I would like to ask if there is a command that will restart the game. Let the game start completely from the beginning.

I though that maybe this can be achieved with a while loop in the main function. But this will cause the entity's to be loaded a second time. Will the engine destroy the old instance or do I need to do it manually?