Fixed a few bugs. Prompts take only legal input.