Program passes all of the course tests now

Aslo I wrote some of my own tests for debugging