added event listenrs for pauseGame