added alternating color code, inner loops, and positioning scaffold