Squares on one row? A pattern link would help visually.
When you use multiple colors in a pattern it's generally done with fair isle or intarsia. Large blocks of color are usually knitted flat using the intarsia method and fair isle is a much smaller design to add color and patterns.
Which are you doing?