refactoring of game.js/main.js. Moved all stuff about gameplay in sector.js
refactoring of main.js