moved debugWait before while loop to make sure MESserver has given new command.

Tipping does not work, because waiting too little.