Successfully identified all polygons using recursive functions.