update main.js and warrior-player.js