Daily Takuzu

A lot of interesting games related to the development of intelligence have come to us from Japan.
Today we want to introduce you to just such a game.
It is called Daily Takuzu.
How to play it, we will now explain to you.
Before you will be a playing field divided into cells.
In some of them there will be squares of red and black colors.
Your task is to mark the three cells next to each other horizontally or vertically in the same color.
In this case, it is impossible that three consecutive cells were of the same color.
Try to keep the rows and columns occupied by squares of different colors through a single cell.
As soon as you build such ranks that level will be passed.