A bit more clever solution to the "first open square" problem.