Fixed Bug When Connection is Lost

I fixed a small bug that, when connection to the server was lost, the game screen would simply freeze until you refreshed the page. Now if you lose connection, the game will go back to the main menu.

Also, I have changed the logic so if you lose connection, you will be able to login again in just 1 minute instead of the original 5 minute timer.