Remodeling the app to decouple efficient and backtrack algorithms logic and to prepare for breadth first search