modified goal.py to allow for testing, added the testgoal.py so we can test