Now everything is properly unregistered when gameovering and going
back to the main menu, fixing another memory leak.