Change delay in gameloop
Add try catch in logger