Fixed very minor bug where DFS doesn't termiante on gaol chip. Cleaned a litte bit of code as well