Change the way orders are kept track in the algo
Organized the code
Added more print statements to make it easier to tell what the algo is
doing