I think my recursive function is a lot more complex than need be. It doesn't work yet.