main.js work on game