added logic to random generator

no longer will have less than 4 colors represented on the grid