fixed playerWaiting null error