Write Algorithm For Depth And Complexity Cards