complete tilt maze: algorithm that figures out a path from a given position to the destination position 'e'