Update setInterval

On reaching the final cat in the set, an error is thrown, as the length used is incorrect. I have updated the function to ensure that the "ready" condition fires at the correct point, which prevents the error and simply loops the cats.