made getPlayerData ajax call synchronous to prevent an early return before we get the real data