MOVED: While loops not working completly

This topic has been moved to Programming Questions.

http://arduino.cc/forum/index.php?topic=129912.0