fixed an issue where getNum returned 1 more than the neccesary
Merge branch 'master' of https://github.com/lazopard/CS240