create init player function, move player init data from server to game-player.js