Modified main() to match Sutton's book
1. 75% happy with convergence function
2. seed for rand() is generated only once