Refactored Maze.java. Set Target algorithm remains to be fully implemented.