One of the many ways to do this could be to have a Global variable (boolean) called, let's say, canRestart
So by default, canRestart is False
On gameover event: Wait 3 seconds, set canRestart to True
On any Touch Start and canRestart is set: Restart layout