Thanks for playing! The idea is that only certain colors can be stacked together at one time, if you pick up a different color than whats allowed for stacking, the new color replaces everything. There was a tip at the top left but as noted by other commenters it was hard to notice :)