Made the program simpler
Changed how theAgent was initialized