Start by painting all the squares with 9 red and all of their neighbors as red. Then paint all the squares with a 0 white and all of their neighbors. The number 1 in the top left next to red 6: You know all other squares next to the 1 must be white since it already has exactly 1 red painted square next to it.