Sanjiv painted \(9\) squares with the colours black, white and grey as shown.

Question:

At least how many squares does he need to repaint so that no two squares with a common side have the same colour?