Refactoring Paths#isPathClear and introducing new ChessboardUtils class.