An environment and solution to exercise 5.4 from
sutton and barto (race track, Monte Carlo)