Functions!

Added functions for handling math, fixing up errors, and making sure you
can complete one round of guesses correctly. Next I need to add
persistent money