add sleep, correct debug output and change g -> a for white color