Match balls of the same colour as fast as you can. But remember, balls can be matched, if and only if there exists at least one 'good path' from one ball to another. A path is said to be good when it turns no more than twice.