Making spacing consistent
Swapped for loop test for if test