class EightQueens {

    static boolean isSolution(List<Position> board) {
        int size = board.size();
        for (int i = 0; i < size; i++) {
            Position firstPosition = board.get(i);
            if (firstPosition.intersectPositions(board, i)) {
                return false;
            }
        }
        return true;
    }

}