Describe the bug
the game is reinitialized whenever user switches tabs and returns to the game.
To Reproduce
Steps to reproduce the behavior:
- start any game mode
- switch to another tab
- comeback to the game
- swal will be poped up.
Expected behavior
The game should be paused and when user comeback, a text message is displayed on screen "Game is paused, press "p" to resume!".
Describe the bug
the game is reinitialized whenever user switches tabs and returns to the game.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The game should be paused and when user comeback, a text message is displayed on screen "Game is paused, press "p" to resume!".