Function for restarting a game without restarting the whole program

Signed-off-by: GreatEmerald <pastas4@gmail.com>