fixed logic to notify server when player runs out of moves