finished part 1 of assignment, started on depth first search