You could've used a FOR loop and made your life 100x easier...