made server ping happen only if the move queue is emptied out