Fixed the marketsim from hw3 of compinvesting! :)