commit 16, background color change depending on the set of rules