Woo, text adventure works now - apparently the ASCII code for a digit isn't the same as the digit...