A grid mdp implementation. Similar to the one in the book AIMA