Please reason step by step, and put your final answer within \boxed{}.
What is the maximum number of colors that can be used to color all the cells of a $10 \times 10$ board so that each row and each column contains cells of no more than five different colors?
user