game.js renamed to gameplay.js
checking Internet connection