Abstract BFS in GridModel

Breadth first search of connected cells in GridModel is abstracted, so that the actions that deal with connected cells can be specified in individual functions without repeating implementation of search.
Is there a slightly cleaner way of asking `if (x == NO)`, i.e. `if (!x)`. Not a huge deal though.