Three global varaible less, switch case instead of myriad of ifs and "deciphered" putchar.