First attempt at a simple maze solving algorithm.