added depth first search that works. it fully completed the board so long as 1 is present. if not it will complete the baord from the minimum element to the last element