Added the lowest cost function

The lowest cost function is a function that completes the lowest cost
tile of a list.  This lets us run the aStar algorithm